# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gphoto2
pkgver=2.5.23
pkgrel=0
pkgdesc="Commandline utilities for accessing cameras"
url="http://www.gphoto.org/"
arch="all"
license="LGPL-2.1-or-later"
makedepends="libgphoto2-dev popt-dev gettext-dev libjpeg-turbo-dev libtool"
subpackages="$pkgname-lang $pkgname-doc"
source="https://sourceforge.net/projects/gphoto/files/gphoto/$pkgver/gphoto2-$pkgver.tar.bz2
	FlashpixVersion.patch
	"


build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="b5cea3008b5b9de93444fa25b11eab13155d479896920275caada123e0578ed3f84f9b15fe82406c332e64955ba075b642341d88e20a2ee78b42991890bca86b  gphoto2-2.5.23.tar.bz2
6a363f66c5cf60359d8728e91bcacceb559f5db89597c7ed259e186188bd4d126d3a3f53b2dc87aaeb381485acbaffa11a2a25bd826a2324a92d60bec730e7c3  FlashpixVersion.patch"
